// pages/wx_event3/wx_event3.js
Page({

  data: {
    num: 0
  },
  addInput(e) {
    console.log(e)
    this.setData({
      num: Number(e.detail.value)
    })
  },
  delInput(e) {
    console.log(e)
    const count = e.currentTarget.dataset.op
    this.setData({
      num:this.data.num+count
    })
  }

})